package com.houseman.workFlow.utils;

import com.google.gson.Gson;
import com.houseman.workFlow.bean.WorkFlowGraph;

public class GraphToJson {

	Gson gson = new Gson();
	
	/**
	 * WorkFlowGraph转json对象
	 * @param json
	 * @return
	 */
	public String toJson(WorkFlowGraph graph) {
		
		return gson.toJson(graph);
	}
	
}
